package com.example.demo.Service.Impl;

import com.example.demo.Entity.User;
import com.example.demo.Dao.UserDao;
import com.example.demo.Service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServicelmpl implements UserService {
    @Autowired
    private UserDao userDao;
    @Override
    public User selectUserByname(String name){
        return userDao.selectUserByname(name);
    }
    @Override
    public void registerNewUser(User user){userDao.registerNewUser(user);}
}
